package org.example.predicate;

import java.util.function.Predicate;

public class Test01 {


    // (T t) -> boolean

    public static void main(String[] args) {



        Predicate<String> predicate = (str) -> {
            return str.length() >2 ;
        };
        boolean res = predicate.test("123");
        System.out.println(res);
    }
}
